package ui.panels;

import java.util.HashMap;
import org.apache.log4j.Logger;

import ui.panels.primary.first.FirstPanel;
import ui.panels.primary.second.SecondPanel;

public class PanelFactory {
	static Logger log = Logger.getLogger(ui.panels.PanelFactory.class);
	
	public static Panel create(int id,HashMap<String, String> map){
		switch(id){
			case 0:
				log.debug("created FirstPanel");
				return new FirstPanel(map);
				
			case 1:
				log.debug("created SecondPanel");			
				return new SecondPanel(map);
				
			case 2:
				log.debug("created ThirdPanel");
				return new ThirdPanel(map); 
			
			case 3:
				log.debug("created RunExperimentPanel");
				return new RunExperimentPanel();
				
			default:
				log.debug("created default- basic panel");
				return new FirstPanel(map);
		}
		
	}
	
}
